module.exports = async (req, res) => {
  const Category = require('../../models/Category');
  const id = req.params.id;
     //获取用户的请求参数，数据库中创建新分类数据
  const model = await Category.findByIdAndUpdate(id, req.body);
  res.send(model);
}